<?php
	if($userCate == 0 )
		echo "<div class='notify-recommend'>Chưa có lập trình viên phù hợp</div>";
	else{
?>
<div class="row">
	<div class="table-responsive">
	   <table class="table">
	      <thead>
	         <tr>
	            <th>Information</th>
	            <th>Skills</th>
	            <th></th>
	         </tr>
	      </thead>
	      <tbody>
	        <?php
	   			//echo "<pre>";
				// print_r($userCate);
				// echo "</pre>";
	        	for ($i=0; $i < count($userCate); $i++) { 
	        		$condition = array("users.id"=>$userCate[$i]->id);
	        		$single_user = $this->user_model->getUserslist($condition);
	        		$single_user = $single_user->row_array();
	    			// echo "<pre>";
					// print_r($single_user);
					// echo "</pre>";
					// echo $single_user['user_name'];
				?>
					<tr>
				        <td class="">
				            <div class="col-lg-12 col-md-12 no-padding">
				                <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 no-padding">
				                    <a href="<?php echo site_url('programmer/viewProfile/'.$single_user['id']);?>"><img title="<?php echo $single_user['user_name'];?>" class="img-responsive" src="<?php if ($single_user['logo']!= '') echo uimage_url($single_user['logo']); else echo image_default(); ?>"></a>
				                </div>
				                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 info-user-footer info-user-footer1 info-user-footer2">
				                    <div class="user-row"><span><?php echo $single_user['user_name'];?></span><span class="col-right"><?php if($single_user['city'] != NULL) echo $single_user['city'];?></span></div>
				                    <div class="user-row">
				                        <span><input id="preview-user" value="<?php echo $single_user['user_rating']?>" type="number" data-star-captions="{}" data-default-caption="{rating}" class="rating" min=0 max=5  data-size="xs" disabled="disabled"></span>
				                        <span class="col-right"><?php echo $single_user['num_reviews'];?> reviews</span>
				                    </div>
				                </div>
				            </div>
				        </td>
				        <td class="x8-24-b padding-table-freelancer-bid">
				            <span class="unit-name-skill"><?php echo getCategoryLinks($userCate[$i]->user_categories);?></span>
				        </td><!-- name skill-->
				        <td class="x8-16 padding-table-freelancer-bid">
				           <button type="button" class="btn btn-invite" data-href="<?php echo site_url("userList/inviteProgrammer/".$single_user['id'])?>"><?php echo $this->lang->line("invite")?></button>
				        </td><!-- btn-join-freelancer -->
				    </tr>
				<?php
	        	}
	        ?>  
	      </tbody>
	   </table>
	</div>  	
</div> 
<?php
	}
?>


<!-- end row content -->
<?php
// echo "<pre>";
// print_r($pr->row_array());
// echo "</pre>";
?>